package com.badminton.web.mapper;

import com.badminton.web.model.UserDO;
import com.badminton.web.model.request.QueryUserInfoRequestVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author: peng.chen
 * @CreateTime: 2025-02-11
 * @Description:
 * @Version: 1.0.0
 */
@Mapper
public interface UserMapper {
    UserDO queryUserInfo(@Param("id") Long id, @Param("name") String name, @Param("phone") String phone, @Param("type") Integer type);

    Integer insertUserInfo(@Param("userDO") UserDO userDO);

    List<UserDO> queryUserInfoByPage(@Param("request") QueryUserInfoRequestVO request);

    Integer countUserInfo(@Param("request") QueryUserInfoRequestVO request);

    Integer updateUserInfo(@Param("userDO") UserDO userDO);

    List<UserDO> queryAllUserInfo();
}
